package com.supplychain.scm.core.common.validator;

import com.google.common.collect.Sets;
import lombok.experimental.Delegate;

import javax.validation.Valid;
import java.util.Set;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName ValidationSet
 * @Description 能校验的Set集合
 * @createTime 21:11:00 2022/11/30
 */
public class ValidationSet<E> implements Set<E> {

	@Delegate
	@Valid
	public Set<E> set = Sets.newHashSet();

	@Override
	public String toString() {
		return set.toString();
	}
}
